# Contributor: J. Peter Mugaas <jpmugaas@suddenlink.net>

_realname=w3c-mathml2
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=2.0
pkgrel=1
pkgdesc="MathML XML scheme (mingw-w64)"
arch=('any')
url="https://www.w3.org/TR/MathML2/"
license=('BSD')
depends=("${MINGW_PACKAGE_PREFIX}-libxml2")
install=w3c-mathml2-${CARCH}.install
source=(https://www.w3.org/TR/2001/REC-MathML2-20010221/dtd/mathml2.dtd
        https://www.w3.org/TR/2001/REC-MathML2-20010221/dtd/mathml2-qname-1.mod
        https://www.w3.org/TR/2001/REC-MathML2-20010221/dtd/isoamsa.ent
        https://www.w3.org/TR/2001/REC-MathML2-20010221/dtd/isoamsb.ent
        https://www.w3.org/TR/2001/REC-MathML2-20010221/dtd/isoamsc.ent
        https://www.w3.org/TR/2001/REC-MathML2-20010221/dtd/isoamsn.ent
        https://www.w3.org/TR/2001/REC-MathML2-20010221/dtd/isoamso.ent
        https://www.w3.org/TR/2001/REC-MathML2-20010221/dtd/isoamsr.ent
        https://www.w3.org/TR/2001/REC-MathML2-20010221/dtd/isogrk3.ent
        https://www.w3.org/TR/2001/REC-MathML2-20010221/dtd/isomfrk.ent
        https://www.w3.org/TR/2001/REC-MathML2-20010221/dtd/isomopf.ent
        https://www.w3.org/TR/2001/REC-MathML2-20010221/dtd/isomscr.ent
        https://www.w3.org/TR/2001/REC-MathML2-20010221/dtd/isotech.ent
        https://www.w3.org/TR/2001/REC-MathML2-20010221/dtd/isobox.ent
        https://www.w3.org/TR/2001/REC-MathML2-20010221/dtd/isocyr1.ent
        https://www.w3.org/TR/2001/REC-MathML2-20010221/dtd/isocyr2.ent
        https://www.w3.org/TR/2001/REC-MathML2-20010221/dtd/isodia.ent
        https://www.w3.org/TR/2001/REC-MathML2-20010221/dtd/isolat1.ent
        https://www.w3.org/TR/2001/REC-MathML2-20010221/dtd/isolat2.ent
        https://www.w3.org/TR/2001/REC-MathML2-20010221/dtd/isonum.ent
        https://www.w3.org/TR/2001/REC-MathML2-20010221/dtd/isopub.ent
        https://www.w3.org/TR/2001/REC-MathML2-20010221/dtd/mmlextra.ent
        https://www.w3.org/TR/2001/REC-MathML2-20010221/dtd/mmlalias.ent
        LICENSE)
sha512sums=('3a91e7df45d5d1b802c0a95d7e61ed06c46dca5c2e49151a17d8ffebaf03c044ca77303a0bac0c0622aeb024ea37a55dd9fabafa21a7edb5d702fa2f480ae041'
            '16d06d874988f1c53d9fb5ef7f1532d5fb883f81e20a2d4a1935e43b6343d21929974b53b4f8065beae1a4d971bc9c4a04ec47b082824b4ab82c454b10fcfafe'
            'fb3bd7f8ee918b2cffab77e8b8b3067fdb72e32258aef1fe79caa26e8057f836512fa2974f7c5697c1d921e16b7188addb23ed50c8f2bc2f727318996b245720'
            'e1ebcd82a2e5ae54895585870f4e8b0a5b5a3d27a64dbcd55006eba5e549ab3ba272d656d92d7f4a4ec34bb812f780267fe324ffe1763bbdb50a085492191d6b'
            'a4e590adfb28e38df448e544e0b15f3760d127d31a853be6c0235a1a7868eaad49d83a3899884f4bfe448b03bae2b873f990142da23a2b27421ddb3d60c17970'
            '32e5a6565f29175c0c46ea7096c8e62a84d1ed19cf4f138787597c2b47afa5c17977060425106378af9b9151c75798fc1207b491d089f04f5515c883df1c2de8'
            '6e8a5393b2e8b818af22694c272c90832a011bdcc566ea03d5d54354f4de5353cd7b41dcd79cb0c8fdad8338e94fbf634a10a7e0e11e2ff620d22101dd7ff792'
            'a313dd60e34e61faca2b0bf1ed763c9facde9a92cbe282e2ba80c5341ad18352b8ee1821615e72ef1ef15d17990114d6bdef3898b4619999336163a7fcc73d41'
            '38c39e62dce37796e6b7d4d076723e1a78265d10cbea8ae0bb5641d00cae101c617d47b5f4bb75b15065f2bb9283d9de9fe19c203217d34bb5f2beea38aefa50'
            '9380ac0b18c09c86e56ccf524ec37e0ee6c8ec361655d540e7ed8ff08e9eccfe83cc3bc1e0bc40bc74f91d700c1a28720f5c0d471c46fc1c0cf007f49f9f318e'
            '4e07b48f8a951cad7c20e2d8a4d3ae110b6b9f784b04a9fc8476362a363ced1937cfde5098e423051e030e9aca1093db27632aed292c379e5b03b2c06a70c157'
            '0e2f02a9c5a8d97a08d2216099c7032cee78af5dde21c6afc4567db855a4c8b29328477cf4849a03728864adbc2075e2065ad398fefabe7ec3c45a894302da08'
            '22406d6fa54862348c257e0672099586ccfd37a5a5be954f415f5f9bad4d5f73d84571ee6cddf347beaeaee7ede91288332c925ecde3e3c85b3138cce7f8dec4'
            'ea2bf4fae2f818a77e16fd13f45f9e6346e4dde6123a58be3353a3b2d677f6dbc2e60de94e47af20b639f21240b37130861809758632eb5c098f54110eb69586'
            '78ba9aaa41cf3ea665f441cffc6a2a21f64e986dc68bb0b94f3168b3e4a6687f1a5bfeab59abe3c87c157f73ed6c310f48237dae102952ec626bb69ac1a8f849'
            '90344ae40a3c918e7ca07a6a9afcd53d3861cc76b4897970cbd07ffbb0d703a5569dd94d67c45ebee7f38dd7c820f9428a5e1d2e8da8704f2f637c72b8d5bff4'
            '4a9312909303c053777189a67efd3bc071ed19df8e728aebf09a9a368ea50f9377ea0228fea6b6291df6c7fac91233cbc57907f1ed77119f218f7c694fcb2080'
            '1e64cab457e2828fce2ed38d9952d592f7be6a1406b0db210e2e953b36f8d368275a09115333a10a2bce66f75715aba8f16a40f144b096fa15ee961a72f032e5'
            '34f1dd8e57307b70c4c71994817b895aa6c18028f5797b917076099b23c3802ca663890478adb464bc60d7c536e43908139aca7fc1613039f2cb7876c5148e33'
            '4b8c516ca4f983cc3da4895a7643a7d813426b2356c7545fe5903b3310dd2f5a04507c29271b208db4b29528720a9948f27253117bd6c5a19d06c575bffed833'
            'ba3522584b5ef1633ac6f1ba569a195b4e466a05ee90242a0ec3bb4ecc729d2a5667d534c6ae8ad6986017de148a3ff552f0d8fe06ed3fa366fd70753e13a085'
            'b55f5ce85a1e8ea281f6b462c8000bf92bf1942ba3671553753c2a410bd67218594ba971bc6f30bee1a3544c59432aa979d9fc156bb08b823ee9a41624f4ee63'
            '9e9c3ff17461061caebcf73edf09cd7481325652f8374138a6a6b965244bec5c0e9576ad386b371573b7344c035045e5b1c3af38eed5521899cf2b6890a33e23'
            '9b76407aafd493752f47c9b9b474e6bfcc5f87eb96a438338138828d8de275ca30d4c2443d73332a68730924876efc853682f27d47072423999290e01add2660')

package() {
  cd "${srcdir}"
  install -d -m 755 "${pkgdir}${MINGW_PREFIX}/share/xml/w3c/mathml2"
  install -m644 mathml2.dtd "${pkgdir}${MINGW_PREFIX}/share/xml/w3c/mathml2/"
  install -m644 *.mod "${pkgdir}${MINGW_PREFIX}/share/xml/w3c/mathml2/"
  install -m644 *.ent "${pkgdir}${MINGW_PREFIX}/share/xml/w3c/mathml2/"
  install -D -m644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/LICENSE"
}
